import { setAdminInfo, getAdminInfo } from '@/utils/storage'
// import { getAdminInfoService } from '@/api/admin'
export default ({
  namespaced: true,
  state: {
    adminInfo: getAdminInfo()
  },
  mutations: {
    setAdminInfo (state, newUserInfo) {
      state.adminInfo = newUserInfo
      setAdminInfo(newUserInfo)
    }
  },
  actions: {},
  getters: {}
})
